<?php

namespace App\Providers;

use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;

class AuthServiceProvider extends ServiceProvider
{
    /**
     * The policy mappings for the application.
     *
     * @var array
     */
    protected $policies = [
        'App\Models\Topic\Reply' => '\App\Policies\Topic\Reply\ReplyPolicy',
        'App\Models\Topic\Topic' => '\App\Policies\Topic\Topic\TopicPolicy',
        'App\Models\User' => 'App\Policies\Index\Users\UserPolicy',
        'App\Models\Community\Status' => 'App\Policies\Community\Statuses\StatusesPolicy',
        'App\Models\Users\UserAddress' => 'App\Policies\Index\Users\UserAddressPolicy',
        'App\Models\Goods\Order' => 'App\Policies\Order\Order\OrderPolicy',

    ];

    /**
     * Register any authentication / authorization services.
     *
     * @return void
     */
    public function boot()
    {
        $this->registerPolicies();

        //
    }
}
